<%@include file="menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<colorimetry>
    <name value ="${mapDrawing.name}" />
    <description value ="${mapDrawing.description}" />
</colorimetry>



<%--
<%@include file="menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <fmt:bundle basename="app">
    <head>
        <title><fmt:message key="login.title.tag" /></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <jsp:include page="menu/header.jsp">
            <jsp:param name="v" value="login" />
        </jsp:include>




    <script type="text/javascript">
        $.validator.setDefaults({
            submitHandler: function() { $('#newMapDrawing').submit() }
        });

        $().ready(function() {
	// validate the comment form when it is submitted
            $("#newMapDrawing").validate();



        });
    </script>



        <!-- File Upload plugin -->
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css" id="theme" />
        <link rel="stylesheet" href="css/jquery.fileupload-ui.css" />
        <link rel="stylesheet" href="css/styleFileUpload.css" />

        <script type="text/javascript">
            function copyUrlToHiddenInput(){


                document.getElementById('filename').value = document.getElementById('file').value
                document.getElementById('iconFilename0').value = document.getElementById('iconFile0').value

                alert(document.getElementById('filename').value)
                alert(document.getElementById('iconFilename0').value)


            }
        </script>

    </head>
    <body>


        <form id="newMapDrawing" action="newMapDrawing.do" enctype="multipart/form-data" method="POST">


            <table>
                <tr>
                    <td>
                        <fmt:message key="forms.name" />
                    </td>
                    <td>
                        <input class="required" type="text" name="name" id="name" value="" />
                    </td>
                </tr>
                <tr>
                    <td>
                          <fmt:message key="forms.description" />
                    </td>
                    <td>
                         <input type="text" name="description"  id="description" value="" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="forms.addFile" />
                    </td>
                    <td>
                        <input class="required" type="file" name="file" id="file" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" onclick="copyUrlToHiddenInput()" value="<fmt:message key='forms.send'/> " />
                    </td>
                </tr>
            </table>
            <input type="hidden" name="filename" id="filename" value="" />
            <input type="hidden" name="iconFilename0" id="iconFilename0" value="" />
    </form>

    </body>
    </fmt:bundle>
</html>

        --%>